from flask import Flask
from flask_cors import CORS

server = Flask("app")
CORS(server, supports_credentials=True)


@server.route('/')
def index():
    return 'Hello Flask!'


@server.route('/info')
def get_info():
    with open('info.json', 'r', encoding='utf-8') as f:
        data = f.read()
    return data


server .run('0.0.0.0', port=8080)
